<?php
namespace lib;

class conf{
	protected static $ins = null;
	protected $cfg = null;
	final protected function __construct(){
		$this->cfg = require(ROOT . 'lib/config.inc.php');
	}
	
	final protected function __clone(){}
	
	public static function getIns(){
		if(!self::$ins instanceof self){
			self::$ins = new self;
		}
		return self::$ins;
	}
	
	public function __set($k,$v){
		return $this->cfg[$k] = $v;
	}
	
	public function __get($k){
		return $this->cfg[$k];
	}
	
}


